function check(){
	var username = encodeURI("#username").val();
	var password = encodeURI("#password").val();
	var tip = document.getElementById("tip");
	var data = {
		user : username,
		pwd : password,
	}
	
	if(username==""){
		tip.innerHTML="用户名不能为空！";
		alert("用户名不能为空")
	}else if(password==""){
		tip.innerHTML="密码不能为空！";
	}else if()
	else{
		//doAjax();
		window.location.href="index.html"
	}
}
function doAjax(data){
	$.ajax({
		type:"post",
		url:"/api/user/login",
		data:JSON.stringify(data),
		success:function(data){
			if(data.code==200){
				window.location.href="index.html"
			}
		}
	});
}